<h1>Editing resource</h1>

<% form_for(@resource) do |f| %>
  <%= f.error_messages %>

  <p>
    <%= f.label :name %><br />
    <%= f.text_field :name %>
  </p>
  <p>
    <%= f.label :description %><br />
    <%= f.text_area :description %>
  </p>
  <p>
    <%= f.label :icon %><br />
    <%= f.text_field :icon %>
  </p>
  <p>
    <%= f.label :wiki_page %><br />
    <%= f.text_field :wiki_page %>
  </p>
  <p>
    <%= f.label :min_stage %><br />
    <%= f.text_field :min_stage %>
  </p>
  <p>
    <%= f.label :max_stage %><br />
    <%= f.text_field :max_stage %>
  </p>
  <p>
    <%= f.submit 'Update' %>
  </p>
<% end %>

<%= link_to 'Show', @resource %> |
<%= link_to 'Back', resources_path %>